<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>经销商变更详情</title>
    <jsp:include page="../../import.jsp" flush="true" />
</head>

<head>
    <meta charset="UTF-8">
    <title>对比</title>
    <style type="text/css">
        .ctrlBar{
            padding-bottom: 10px;
            text-align: right;
        }
        .compareLay{
            position: relative;
        }
        .compareLay:before{
            content: '';
            position: absolute;
            left: 50%;
            top: 30px;
            bottom: 0;
            display: block;
            width: 1%;
            margin-left: -.5%;
            background: #4a9b5e;
            /*height: 100%;*/
            line-height: 0;
            font-size: 0;
            clear: both;
        }
        .compareLay:after{
            content: '';
            display: block;
            height: 0;
            line-height: 0;
            font-size: 0;
            clear: both;
        }
        .compareLay .halfLay{
            float: left;
            width: 49%;
        }
        .compareLay .halfLay2{
            float: right;
        }
    </style>
</head>

<body class="iframeBody">
<div class="Wrapper">
    <div class="compareLay">
        <div class="ctrlBar">
            <input id="splId" style="display:none" value="${splBscInfoApplyVO.splId }">
            <span id="splInfo" class="sq-button sq-button-round">详情</span>
        </div>
        <div class="halfLay halfLay1">
            <div>
                <div class="fieldset1 tabel_col clearFix">
                    <div class="caption">
                        <span class="title">变更后</span>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">供应商名称</div>
                        <div class="field">
                            ${splBscInfoApplyVO.splNm }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">统一社会信用代码</div>
                        <div class="field">
                            ${splBscInfoApplyVO.succ }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">营业执照号</div>
                        <div class="field">
                            ${splBscInfoApplyVO.bizLicNo }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">税务登记号</div>
                        <div class="field">
                            ${splBscInfoApplyVO.taxRegNo }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">组织机构代码</div>
                        <div class="field">
                            ${splBscInfoApplyVO.orgCode }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">流程变更备注</div>
                        <div class="field">
                            ${splBscInfoApplyVO.chngFlowRem }
                        </div>
                    </div>
                </div>
            </div>
            <div class="sqPanel">
                <div class="sqPanel_head inL">
                    <span>主要人员信息</span>
                </div>
                <div class="sqPanel_body">
                    <div id="ligergrid_A1" class="sq-grid"></div>
                </div>
            </div>
            <div class="sqPanel">
                <div class="sqPanel_head inL">
                    <span>资料信息</span>
                </div>
                <div class="fieldBox col_100">
                    <div id="fileList_AFTER">
                        <jsp:include page="../../system/sysUlFilesRec/sysUlFileRecList.jsp" flush="true">
                            <jsp:param name="pkId" value="${splBscInfoApplyVO.id}"/>
                            <jsp:param name="tabNm" value="SPL_BSC_INFO_APPLY"/>
                        </jsp:include>
                    </div>
                </div>
            </div>
            <div class="fieldset1 tabel_col clearFix">
                <div class="fieldBox col_100">
                    <div class="label">可支持流程</div>
                    <div class="field">
                        <c:forEach items="${splBiApplyFlowRlVOList }" var="splBiApplyFlowRlVO" begin="0" step="1" varStatus="status">
                            <input type="checkbox" readonly="readonly"
                                   <c:if test="${splBiApplyFlowRlVO.isDel!=1 }">checked="checked"</c:if>>
                            <span>${splBiApplyFlowRlVO.PDefKeynm }
				    		<c:if test="${splBiApplyFlowRlVO.PDefKey=='FLOW_00000001_007_001' && splBiApplyFlowRlVO.isDel!=1 }">
				    			<span>
					    			<span style="color: red;">支持不上牌资产数量</span>
					    			<span>
                                            ${splBiApplyFlowRlVO.flowNum }
                                    </span>台
				    			</span>
                            </c:if>
			    		</span><br/>
                        </c:forEach>
                    </div>
                </div>
            </div>
        </div>
        <div class="halfLay halfLay2">
            <div>
                <div class="fieldset1 tabel_col clearFix">
                    <div class="caption">
                        <span class="title">变更前</span>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">供应商名称</div>
                        <div class="field">
                            ${splBscInfoApplyVO.splNmB }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">统一社会信用代码</div>
                        <div class="field">
                            ${splBscInfoApplyVO.succB }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">营业执照号</div>
                        <div class="field">
                            ${splBscInfoApplyVO.bizLicNoB }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">税务登记号</div>
                        <div class="field">
                            ${splBscInfoApplyVO.taxRegNoB }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">组织机构代码</div>
                        <div class="field">
                            ${splBscInfoApplyVO.orgCodeB }
                        </div>
                    </div>
                    <div class="fieldBox col_100">
                        <div class="label">流程变更备注</div>
                        <div class="field">
                            ${splBscInfoApplyVO.chngFlowRemB }
                        </div>
                    </div>
                </div>
            </div>
            <div class="sqPanel">
                <div class="sqPanel_head inL">
                    <span>主要人员信息</span>
                </div>
                <div class="sqPanel_body">
                    <div id="ligergrid_B1" class="sq-grid"></div>
                </div>
            </div>
            <div class="sqPanel">
                <div class="sqPanel_head inL">
                    <span>资料信息</span>
                </div>
                <div class="fieldBox col_100">
                    <div id="fileList_BEFORE">
                        <jsp:include page="../../system/sysUlFilesRec/sysUlFileRecListCompare.jsp" flush="true">
                            <jsp:param name="pkId" value="${splBscInfoApplyVO.id}"/>
                            <jsp:param name="tabNm" value="SPL_BSC_INFO"/>
                        </jsp:include>
                    </div>
                </div>
            </div>
            <div class="fieldset1 tabel_col clearFix">
                <div class="fieldBox col_100">
                    <div class="label">可支持流程</div>
                    <div class="field">
                        <c:forEach items="${splBiApplyFlowRlVOList }" var="splBiApplyFlowRlVO" begin="0" step="1" varStatus="status">
                            <input type="checkbox" readonly="readonly"
                                   <c:if test="${splBiApplyFlowRlVO.isDelB!=1 }">checked="checked"</c:if>>
                            <span>${splBiApplyFlowRlVO.PDefKeyBnm }
				    		<c:if test="${splBiApplyFlowRlVO.PDefKeyB =='FLOW_00000001_007_001' && splBiApplyFlowRlVO.isDelB!=1 }">
                                <span style="color: red;">支持不上牌资产数量</span>
                                <span>
                                        ${splBiApplyFlowRlVO.flowNumB }
                                </span>台
                            </c:if>
			    		</span>
                        </c:forEach>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function() {
        var id = '${id}';
        $("#ligergrid_A1").ligerGrid({
            usePager: false,
            url: '<%=path%>/product/splApplyInfo/initSplInfoApplyRlPsnList.do?id=' + id,
            method : 'get',
            columns: [{
                display: '姓名',
                name: 'rlNm',
                width: 120
            }, {
                display: '证件类型',
                name: 'certTypCdnm',
                minWidth: 60
            }, {
                display: '证件号',
                name: 'certNo',
                width: 120,
            }, {
                display: '关联类型',
                name: 'rlTypCdnm',
                minWidth: 150
            }, {
                display: '联系电话',
                name: 'tel',
                minWidth: 120
            }],
            root:'rows',
            width: '100%',
            isScroll: false,
            rownumbers: true,
            onAfterShowData: function() {
                SetIframe_height();
            }
        });

        $("#ligergrid_B1").ligerGrid({
            usePager: false,
            url: '<%=path%>/product/splApplyInfo/initSplInfoApplyRlPsnList.do?id=' + id,
            method : 'get',
            columns: [{
                display: '姓名',
                name: 'rlNmB',
                width: 120
            }, {
                display: '证件类型',
                name: 'certTypCdBnm',
                minWidth: 60
            }, {
                display: '证件号',
                name: 'certNoB',
                width: 120,
            }, {
                display: '关联类型',
                name: 'rlTypCdBnm',
                minWidth: 150
            }, {
                display: '联系电话',
                name: 'telB',
                minWidth: 120
            }],
            root:'rows',
            width: '100%',
            isScroll: false,
            rownumbers: true,
            onAfterShowData: function() {
                SetIframe_height();
            }
        });

        //供应商链接
        $("#splInfo").click(function(event) {
            var id = $("#splId").val();
            Add_navTab('spl_bsc_info'+id,'供应商信息','<%=path%>/product/splInfo/toDetailPage.do?id='+id+'&splAttrCd=2&ischange=0');
        });

    });
    frameElement.dialog.onCancel = function () {
        frameElement.dialog.close();
    }
</script>
</body>

</html>